package day06;
import java.util.Arrays;

public class ArrayDemo {
    public static void main(String[] args) {
        int []a=new int[7];
        int []b=new int[7];
        for (int i=0;i<a.length;i++){

            a[i]=(int)(Math.random()*100+1);
            System.out.println(a[i]);
        }
        System.arraycopy(a,1,b,1,5);
        for (int i=0;i< b.length;i++){
            System.out.println(b[i]);
        }
    }
}
